Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove 'static requirement from difference traits #501

Merged

Conversation

frankmcsherry
Copy link
Member

Our difference traits, Semigroup, Monoid, and Abelian, have been defined to require Data, which has been a helpful catch-all trait that includes 'static. However, it is reasonable to want to implement these traits for lifetimed data, for example a Cow<'a, Diff> type.

This PR replaces Data with Clone in the requirements for the difference traits, and moves the 'static and occasionally Ord requirements to those locations where they are required. This is a bit noisier, but I think a bit more "accurate".

src/operators/reduce.rs Outdated Show resolved Hide resolved
@frankmcsherry frankmcsherry merged commit 56b8cf9 into TimelyDataflow:master May 27, 2024
7 checks passed
@frankmcsherry frankmcsherry deleted the lifetimed_differences branch May 27, 2024 14:56
This was referenced Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants